﻿using Common;
using Services;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace SignalRClient.App_Start
{
    public class SignalRConfig
    {
        public static void RegisterSignalRs()
        {
            var sClient = new SignalRClientHelper<string>("http://localhost:4008", "IotMessage");
            sClient.eventRun += SClient_eventRun;
            sClient.Start("SendMessage");
        }

        private static void SClient_eventRun(string s,string t)
        {
            var srService = new SignalRClienService();
            srService.SignalRSendData(s, t);
        }
    }
}